package com.jieshuibao.model.db;

import java.util.ArrayList;
import java.util.List;

public class IntegralExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private int pageIndex;

    private int pageSize;

    public IntegralExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex=pageIndex;
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageSize(int pageSize) {
        this.pageSize=pageSize;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public IntegralExample(int pageIndex, int pageSize) {
        this();
        this.pageIndex=pageIndex;
        this.pageSize=pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUuidIsNull() {
            addCriterion("integral.uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("integral.uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("integral.uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("integral.uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("integral.uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("integral.uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("integral.uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("integral.uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("integral.uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("integral.uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("integral.uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("integral.uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("integral.uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("integral.uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andRegistIsNull() {
            addCriterion("integral.regist is null");
            return (Criteria) this;
        }

        public Criteria andRegistIsNotNull() {
            addCriterion("integral.regist is not null");
            return (Criteria) this;
        }

        public Criteria andRegistEqualTo(Integer value) {
            addCriterion("integral.regist =", value, "regist");
            return (Criteria) this;
        }

        public Criteria andRegistNotEqualTo(Integer value) {
            addCriterion("integral.regist <>", value, "regist");
            return (Criteria) this;
        }

        public Criteria andRegistGreaterThan(Integer value) {
            addCriterion("integral.regist >", value, "regist");
            return (Criteria) this;
        }

        public Criteria andRegistGreaterThanOrEqualTo(Integer value) {
            addCriterion("integral.regist >=", value, "regist");
            return (Criteria) this;
        }

        public Criteria andRegistLessThan(Integer value) {
            addCriterion("integral.regist <", value, "regist");
            return (Criteria) this;
        }

        public Criteria andRegistLessThanOrEqualTo(Integer value) {
            addCriterion("integral.regist <=", value, "regist");
            return (Criteria) this;
        }

        public Criteria andRegistIn(List<Integer> values) {
            addCriterion("integral.regist in", values, "regist");
            return (Criteria) this;
        }

        public Criteria andRegistNotIn(List<Integer> values) {
            addCriterion("integral.regist not in", values, "regist");
            return (Criteria) this;
        }

        public Criteria andRegistBetween(Integer value1, Integer value2) {
            addCriterion("integral.regist between", value1, value2, "regist");
            return (Criteria) this;
        }

        public Criteria andRegistNotBetween(Integer value1, Integer value2) {
            addCriterion("integral.regist not between", value1, value2, "regist");
            return (Criteria) this;
        }

        public Criteria andQuestionIsNull() {
            addCriterion("integral.question is null");
            return (Criteria) this;
        }

        public Criteria andQuestionIsNotNull() {
            addCriterion("integral.question is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionEqualTo(Integer value) {
            addCriterion("integral.question =", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionNotEqualTo(Integer value) {
            addCriterion("integral.question <>", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionGreaterThan(Integer value) {
            addCriterion("integral.question >", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionGreaterThanOrEqualTo(Integer value) {
            addCriterion("integral.question >=", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionLessThan(Integer value) {
            addCriterion("integral.question <", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionLessThanOrEqualTo(Integer value) {
            addCriterion("integral.question <=", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionIn(List<Integer> values) {
            addCriterion("integral.question in", values, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionNotIn(List<Integer> values) {
            addCriterion("integral.question not in", values, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionBetween(Integer value1, Integer value2) {
            addCriterion("integral.question between", value1, value2, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionNotBetween(Integer value1, Integer value2) {
            addCriterion("integral.question not between", value1, value2, "question");
            return (Criteria) this;
        }

        public Criteria andAdopIsNull() {
            addCriterion("integral.adop is null");
            return (Criteria) this;
        }

        public Criteria andAdopIsNotNull() {
            addCriterion("integral.adop is not null");
            return (Criteria) this;
        }

        public Criteria andAdopEqualTo(Integer value) {
            addCriterion("integral.adop =", value, "adop");
            return (Criteria) this;
        }

        public Criteria andAdopNotEqualTo(Integer value) {
            addCriterion("integral.adop <>", value, "adop");
            return (Criteria) this;
        }

        public Criteria andAdopGreaterThan(Integer value) {
            addCriterion("integral.adop >", value, "adop");
            return (Criteria) this;
        }

        public Criteria andAdopGreaterThanOrEqualTo(Integer value) {
            addCriterion("integral.adop >=", value, "adop");
            return (Criteria) this;
        }

        public Criteria andAdopLessThan(Integer value) {
            addCriterion("integral.adop <", value, "adop");
            return (Criteria) this;
        }

        public Criteria andAdopLessThanOrEqualTo(Integer value) {
            addCriterion("integral.adop <=", value, "adop");
            return (Criteria) this;
        }

        public Criteria andAdopIn(List<Integer> values) {
            addCriterion("integral.adop in", values, "adop");
            return (Criteria) this;
        }

        public Criteria andAdopNotIn(List<Integer> values) {
            addCriterion("integral.adop not in", values, "adop");
            return (Criteria) this;
        }

        public Criteria andAdopBetween(Integer value1, Integer value2) {
            addCriterion("integral.adop between", value1, value2, "adop");
            return (Criteria) this;
        }

        public Criteria andAdopNotBetween(Integer value1, Integer value2) {
            addCriterion("integral.adop not between", value1, value2, "adop");
            return (Criteria) this;
        }

        public Criteria andSecretlyIsNull() {
            addCriterion("integral.secretly is null");
            return (Criteria) this;
        }

        public Criteria andSecretlyIsNotNull() {
            addCriterion("integral.secretly is not null");
            return (Criteria) this;
        }

        public Criteria andSecretlyEqualTo(Integer value) {
            addCriterion("integral.secretly =", value, "secretly");
            return (Criteria) this;
        }

        public Criteria andSecretlyNotEqualTo(Integer value) {
            addCriterion("integral.secretly <>", value, "secretly");
            return (Criteria) this;
        }

        public Criteria andSecretlyGreaterThan(Integer value) {
            addCriterion("integral.secretly >", value, "secretly");
            return (Criteria) this;
        }

        public Criteria andSecretlyGreaterThanOrEqualTo(Integer value) {
            addCriterion("integral.secretly >=", value, "secretly");
            return (Criteria) this;
        }

        public Criteria andSecretlyLessThan(Integer value) {
            addCriterion("integral.secretly <", value, "secretly");
            return (Criteria) this;
        }

        public Criteria andSecretlyLessThanOrEqualTo(Integer value) {
            addCriterion("integral.secretly <=", value, "secretly");
            return (Criteria) this;
        }

        public Criteria andSecretlyIn(List<Integer> values) {
            addCriterion("integral.secretly in", values, "secretly");
            return (Criteria) this;
        }

        public Criteria andSecretlyNotIn(List<Integer> values) {
            addCriterion("integral.secretly not in", values, "secretly");
            return (Criteria) this;
        }

        public Criteria andSecretlyBetween(Integer value1, Integer value2) {
            addCriterion("integral.secretly between", value1, value2, "secretly");
            return (Criteria) this;
        }

        public Criteria andSecretlyNotBetween(Integer value1, Integer value2) {
            addCriterion("integral.secretly not between", value1, value2, "secretly");
            return (Criteria) this;
        }

        public Criteria andCompleteIsNull() {
            addCriterion("integral.complete is null");
            return (Criteria) this;
        }

        public Criteria andCompleteIsNotNull() {
            addCriterion("integral.complete is not null");
            return (Criteria) this;
        }

        public Criteria andCompleteEqualTo(Integer value) {
            addCriterion("integral.complete =", value, "complete");
            return (Criteria) this;
        }

        public Criteria andCompleteNotEqualTo(Integer value) {
            addCriterion("integral.complete <>", value, "complete");
            return (Criteria) this;
        }

        public Criteria andCompleteGreaterThan(Integer value) {
            addCriterion("integral.complete >", value, "complete");
            return (Criteria) this;
        }

        public Criteria andCompleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("integral.complete >=", value, "complete");
            return (Criteria) this;
        }

        public Criteria andCompleteLessThan(Integer value) {
            addCriterion("integral.complete <", value, "complete");
            return (Criteria) this;
        }

        public Criteria andCompleteLessThanOrEqualTo(Integer value) {
            addCriterion("integral.complete <=", value, "complete");
            return (Criteria) this;
        }

        public Criteria andCompleteIn(List<Integer> values) {
            addCriterion("integral.complete in", values, "complete");
            return (Criteria) this;
        }

        public Criteria andCompleteNotIn(List<Integer> values) {
            addCriterion("integral.complete not in", values, "complete");
            return (Criteria) this;
        }

        public Criteria andCompleteBetween(Integer value1, Integer value2) {
            addCriterion("integral.complete between", value1, value2, "complete");
            return (Criteria) this;
        }

        public Criteria andCompleteNotBetween(Integer value1, Integer value2) {
            addCriterion("integral.complete not between", value1, value2, "complete");
            return (Criteria) this;
        }

        public Criteria andVideoIsNull() {
            addCriterion("integral.video is null");
            return (Criteria) this;
        }

        public Criteria andVideoIsNotNull() {
            addCriterion("integral.video is not null");
            return (Criteria) this;
        }

        public Criteria andVideoEqualTo(Integer value) {
            addCriterion("integral.video =", value, "video");
            return (Criteria) this;
        }

        public Criteria andVideoNotEqualTo(Integer value) {
            addCriterion("integral.video <>", value, "video");
            return (Criteria) this;
        }

        public Criteria andVideoGreaterThan(Integer value) {
            addCriterion("integral.video >", value, "video");
            return (Criteria) this;
        }

        public Criteria andVideoGreaterThanOrEqualTo(Integer value) {
            addCriterion("integral.video >=", value, "video");
            return (Criteria) this;
        }

        public Criteria andVideoLessThan(Integer value) {
            addCriterion("integral.video <", value, "video");
            return (Criteria) this;
        }

        public Criteria andVideoLessThanOrEqualTo(Integer value) {
            addCriterion("integral.video <=", value, "video");
            return (Criteria) this;
        }

        public Criteria andVideoIn(List<Integer> values) {
            addCriterion("integral.video in", values, "video");
            return (Criteria) this;
        }

        public Criteria andVideoNotIn(List<Integer> values) {
            addCriterion("integral.video not in", values, "video");
            return (Criteria) this;
        }

        public Criteria andVideoBetween(Integer value1, Integer value2) {
            addCriterion("integral.video between", value1, value2, "video");
            return (Criteria) this;
        }

        public Criteria andVideoNotBetween(Integer value1, Integer value2) {
            addCriterion("integral.video not between", value1, value2, "video");
            return (Criteria) this;
        }

        public Criteria andRechargeIsNull() {
            addCriterion("integral.recharge is null");
            return (Criteria) this;
        }

        public Criteria andRechargeIsNotNull() {
            addCriterion("integral.recharge is not null");
            return (Criteria) this;
        }

        public Criteria andRechargeEqualTo(Integer value) {
            addCriterion("integral.recharge =", value, "recharge");
            return (Criteria) this;
        }

        public Criteria andRechargeNotEqualTo(Integer value) {
            addCriterion("integral.recharge <>", value, "recharge");
            return (Criteria) this;
        }

        public Criteria andRechargeGreaterThan(Integer value) {
            addCriterion("integral.recharge >", value, "recharge");
            return (Criteria) this;
        }

        public Criteria andRechargeGreaterThanOrEqualTo(Integer value) {
            addCriterion("integral.recharge >=", value, "recharge");
            return (Criteria) this;
        }

        public Criteria andRechargeLessThan(Integer value) {
            addCriterion("integral.recharge <", value, "recharge");
            return (Criteria) this;
        }

        public Criteria andRechargeLessThanOrEqualTo(Integer value) {
            addCriterion("integral.recharge <=", value, "recharge");
            return (Criteria) this;
        }

        public Criteria andRechargeIn(List<Integer> values) {
            addCriterion("integral.recharge in", values, "recharge");
            return (Criteria) this;
        }

        public Criteria andRechargeNotIn(List<Integer> values) {
            addCriterion("integral.recharge not in", values, "recharge");
            return (Criteria) this;
        }

        public Criteria andRechargeBetween(Integer value1, Integer value2) {
            addCriterion("integral.recharge between", value1, value2, "recharge");
            return (Criteria) this;
        }

        public Criteria andRechargeNotBetween(Integer value1, Integer value2) {
            addCriterion("integral.recharge not between", value1, value2, "recharge");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}